﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditNewsPager.aspx.cs" ValidateRequest="false"
    Inherits="NJL.WebManage.SystemNews.EditNewsPager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <script type="text/javascript">

        function check() {

            var pageindex = document.getElementById("txtPageIndex").value;
            if (pageindex < 2) {
                alert("请输入大于或等于2的页数");
                return false;
            }
            var regNumber = /^[0-9]*[1-9][0-9]*$/;
            if (regNumber.exec(pageindex) == null) {
                alert("页数只能为数字");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p>
            <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Height="61px" Width="100%"></asp:TextBox>
            <script type="text/javascript">
                CKEDITOR.replace('<%=txtContent.ClientID%>',
                            {
                                filebrowserBrowseUrl: '/ckfinder/ckfinder.html', //启用浏览功能
                                filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?Type=Images',
                                filebrowserFlashBrowseUrl: '/ckfinder/ckfinder.html?Type=Flash',
                                filebrowserUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                                filebrowserImageUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
                                filebrowserFlashUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                            }
                            );
            </script>
        </p>
              <p>页码：<asp:TextBox ID="txtPageIndex" runat="server" MaxLength="8" style="text-align:center;width:50px;"></asp:TextBox></p>
        <p>
            <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return check()" />&nbsp;&nbsp;&nbsp;&nbsp;<input
                id="Button1" type="button" value="返回" onclick="location.href='AddNewsPager.aspx?id=<%=Request.QueryString["pid"] %>'" /></p>
    </div>
    </form>
</body>
</html>
